import request from '../utils/request'

export const reg = (info)=>{ // 注册
    return request.post('/node/users',info)
}

export const login = (info)=>{ // 登录
    return request.get('/node/users',{
        params:info
    })
}

export const userUpdate = (_id,info)=>{  //更新用户信息,info是新的信息
    return request.put('/node/users',{
        _id,info
    })
}